<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>卖家-修改个人信息</title>
<link href="<?php echo $this->_webroot('/user/css/common.css'); ?>" rel="stylesheet" type="text/css" />
<link href="<?php echo $this->_webroot('/user/css/content1.css'); ?>" rel="stylesheet" type="text/css" />
<script src="<?php echo $this->_webroot('/user/js/jquery-1.7.1.min.js'); ?>" type="text/javascript"></script>
<script src="<?php echo $this->_webroot('/user/js/common.js'); ?>" type="text/javascript"></script>


</head>
<body>
<psp:tags     htmlname='user_topnav1'  iconname='usertopnav1' />
<psp:tags     htmlname='user_topsearch'  iconname='usertopsearch' />

<div class="main">
	<div class="main-left">
    	<div class="title">会员管理中心</div>
        <psp:tags     htmlname='user_menulist'  iconname='usermenulist' />
    </div>
<link href="<?php echo $this->_webroot('/user/css/shoprequest.css'); ?>" rel="stylesheet" type="text/css" />   
    <div class="main-right main_right">
	

	
            <div class="cont">
                <div class="cont_title">友情链接列表<span class="tr_op"><a href="<?php echo $this->_url('shoplinks/add');?>">添加友情链接</a></span></div>
			
				<table width="100%" border="0" cellspacing="0">
            <tr >
				<th width="40px">ID</th>
				<th width="200px" align="left">链接名称</th>
				<th width="110px" align="left">链接图片</th>
				<th width="36px">显示</th>
				<th width="200px">添加时间</th>
				<th width="50px">操作</th>
			</tr>
			
			<?php if($result) {
			foreach($result as $value) { ?>
			<tr style="text-align:center">
				<td><?php echo $value['shoplinks']['id'];?></td>
				<td class="limit" align="left"><?php echo $value['shoplinks']['name'];?></td>
				<td align="left"><img src="<?php echo $value['shoplinks']['pic'];?>" /></td>
				<td>
					<?php if($value['shoplinks']['is_show']) { ?>
					<img src="<?php echo $this->_webroot('user/images/yes.gif'); ?>" onclick="toggle_show(this,'<?php echo $value['shoparticle']['id']; ?>')"  onerror="this.src='<?php echo $this->_webroot('/user/images/nopic.gif'); ?>'" />
					<?php } else { ?>
					<img src="<?php echo $this->_webroot('user/images/no.gif'); ?>" onclick="toggle_show(this,'<?php echo $value['shoparticle']['id']; ?>')"  onerror="this.src='<?php echo $this->_webroot('/user/images/nopic.gif'); ?>'" />
					<?php } ?>
				</td>
				<td><?php echo $value['shoplinks']['add_time'];?></td>
				<td>
					<a href="<?php echo $this->_url('shoplinks/edit/'.$value['shoplinks']['id']);?>">修改</a><br />
					<a href="<?php echo $this->_url('shoplinks/del/'.$value['shoplinks']['id']);?>" onclick="return confirm('您确定要删除这条消息吗？');">删除</a>
				</td>
			</tr>
			<?php }?>
			<?php } else { ?>
			<tr>
				<td colspan="9" class="center">暂无信息!</td>
			</tr>
			<?php } ?>
			<tr>
				<td colspan="9" class="center">
				共<?php  echo $this->params['paging']['shoplinks']['count']; ?>条记录
<a href="<?php  echo Router::ArrayToUrl($this->params['paging']['shoplinks']['pageurl'] + array('page'=> '1')) ; ?>">首页</a>
<?php if ( $this->params['paging']['shoplinks']['prevPage'] ) { ?><a href="<?php  echo Router::ArrayToUrl($this->params['paging']['shoplinks']['pageurl'] + array('page'=> $this->params['paging']['shoplinks']['page'] -1 )) ; ?>">上一页</a><?php } ?>
<?php if ( $this->params['paging']['shoplinks']['nextPage'] ) { ?><a href="<?php  echo Router::ArrayToUrl($this->params['paging']['shoplinks']['pageurl'] + array('page'=> $this->params['paging']['shoplinks']['page'] +1 )) ; ?>">下一页</a><?php } ?>
<a href="<?php  echo Router::ArrayToUrl($this->params['paging']['shoplinks']['pageurl'] + array('page'=> $this->params['paging']['shoplinks']['pageCount'])) ; ?>">尾页</a>
当前第<?php  echo $this->params['paging']['shoplinks']['page']; ?>页/共<?php  echo $this->params['paging']['shoplinks']['pageCount']; ?>页				
				</td>
			</tr>
			
				</table>			  
            </div>
    </div>
    <div class="clear"></div>
</div>

<div class="footer">
    <psp:tags     htmlname='user_footer_helper'  iconname='userfooterhelper' />

</div>


</body>
</html>